<template>
    <el-checkbox v-model="checked" :indeterminate="indeterminate" :disabled="disabled" @change="change"  v-bind="$attrs" v-on="$listeners">{{text}}</el-checkbox>
</template>

<script>
    export default {
        data() {
            return {
            }
        },
        props: {
            disabled: Boolean,
            border: Boolean,
            label:String,
            size:String,
            text:String,
            checked: Boolean,
            indeterminate: Boolean,
        },
        methods: {
            change(val) {
                console.log(val);
                this.$emit('change', val)
            }
        }
    }
</script>
